package ewms.service;

import ewms.bo.EwmsTransferWarehouseAddBo;
import ewms.bo.EwmsTransferWarehouseEditBo;
import ewms.bo.EwmsTransferWarehouseQueryBo;
import ewms.domain.EwmsTransferWarehouse;
import ewms.vo.transfer_warehouse.EwmsTransferWarehouseVo;
import ewms.vo.transfer_warehouse.EwmsTransferWarehouseWrapperVo;
import ewms.common.core.page.IServicePlus;
import ewms.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 危废转库Service接口
 *
 * @author zhaoxiaochun
 * @date 2022-02-15
 */
public interface IEwmsTransferWarehouseService extends IServicePlus<EwmsTransferWarehouse> {
	/**
	 * 查询单个
	 * @return
	 */
	EwmsTransferWarehouseVo queryById(Long transferWarehouseId);

	/**
	 * 查询危废转库列表
	 *
	 * @param transferWarehouseQueryBo
	 * @return
	 */
	TableDataInfo<EwmsTransferWarehouseWrapperVo> selectPageTransferWarehouseList(EwmsTransferWarehouseQueryBo transferWarehouseQueryBo);

	/**
	 * 查询危废转库列表
	 *
	 * @param transferWarehouseQueryBo
	 * @return
	 */
	public List<EwmsTransferWarehouseWrapperVo> selectTransferWarehouseList(EwmsTransferWarehouseQueryBo transferWarehouseQueryBo);

	/**
	 * 查询列表
	 */
    TableDataInfo<EwmsTransferWarehouseVo> queryPageList(EwmsTransferWarehouseQueryBo bo);

	/**
	 * 查询列表
	 */
	List<EwmsTransferWarehouseVo> queryList(EwmsTransferWarehouseQueryBo bo);

	/**
	 * 根据新增业务对象插入危废转库
	 * @param bo 危废转库新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(EwmsTransferWarehouseAddBo bo);

	/**
	 * 根据编辑业务对象修改危废转库
	 * @param bo 危废转库编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(EwmsTransferWarehouseEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
